<script setup>
import { FormLabel } from '@/components/ui/form'

defineProps({
  required: { type: Boolean, required: false }
})
</script>

<template>
  <FormLabel>
    <slot />
    <span v-if="required" class="text-destructive"> *</span>
  </FormLabel>
</template>
